<template>
  <div class="findItem"  @click="toRouteDetail">
    <!-- <div class="Img" v-if="findMessage.images.length == 0"><img src="@/assets/img/find/风景图片.png" alt=""></div> -->
    <div class="Img"><img :src="findMessage.scenicDtoList[0][0].scenicImage[0]" alt=""></div>
    <div class="site"><img src="@/assets/img/find/定位.svg" alt=""><span>{{findMessage.routeName}}</span></div>
    <div class="describe">{{ findMessage.brief }}</div>
  </div>
</template>
<script>
export default {
  name:'findItem',
  props: {
    findMessage: {
      type: Object,
      default: {}
    }
  },
  mounted() {
  },
  methods:{
    toRouteDetail() {
      console.log(this.findMessage);
      this.$router.push({
        path:'/routeList',
        query: this.findMessage
      })
    }
  }

}
</script>

<style scoped>
  .findItem {
    background-color: #fff;
    border-radius: 20px;
    height: 180px;
    width: 150px;
    margin: 10px;
    padding: 10px;
    box-shadow: 0 5px 2px #999999;
    display: flex;
    flex-direction: column;
  }
  /* 图片样式 */
  .Img {
    flex: 2;
    text-align: center;
  }
  .Img img {
    height: 4.75rem;
    border-radius: 10px;
  }
    /* 地名样式 */
  .site {
    flex: 1;
  }
  .site img {
    height: 1rem;
  }
  .site span {
    font-size: 15px;
    font-weight: 700;
    display: -webkit-box;
    overflow: hidden;
    word-break:break-all ;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;  
  }
    /* 描述样式 */
  .describe {
    flex: 2;
    padding: 5px;
    font-size: 13px;
    line-height: 1.125rem;
    /* 多行显示为省略号 */
    display: -webkit-box;
    overflow: hidden;
    word-break:break-all ;
    text-overflow: ellipsis;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;  

  }
</style>